MsgN("-- Resource Systems RD3 legacy loaded")

CAF = {}

CAF.GetAddon = function( name )
	if (name == "Resource Distribution") then
		return RD
	end

	return false
end

RD = {}

RD.Unlink = function( ent ) --my system is smart enough to figure this out
end

RD.RemoveRDEntity = function( ent ) --my system is smart enough to figure this out
end

RD.AddResource = function( ent, resource, maximum, default )
	return RD_AddResource( ent, resource, maximum )
end

RD.GetResourceAmount = function( ent, resource )
	return RD_GetResourceAmount( ent, resource )
end

RD.ConsumeResource = function( ent, resource, amount)
	return RD_ConsumeResource( ent, resource, amount )
end

RD.SupplyResource = function( ent, resource, amount)
	return RD_SupplyResource( ent, resource, amount )
end

RD.GetUnitCapacity = function( ent, resource )
	return RD_GetUnitCapacity( ent, resource )
end

RD.GetNetworkCapacity = function( ent, resource )
	return RD_GetNetworkCapacity( ent, resource )
end